<template>
	<div>
		<iframe name="iframe" id="iframeMapViewComponent" width="95%" height="780px" :src="url" :visible.sync="isBind"
			frameborder="0" style="margin-left: 2%;" scrolling="no" ref="iframe"></iframe>
	</div>
</template>
<script>
	import {
		getToken
	} from '@/util/auth'
	import {
		mapGetters
	} from "vuex";
	import request from '@/router/axios';
	import {
		baseUrl
	} from '@/config/env';

	const dic = [];
	const user = [];
	export default {
		data() {
			return {
				isBind: false,
				token: '',
				url: "https://cloudadmin.ebyte.com/out/index.html",
				//url:"https://cloudadmin.ebyte.com/dp/out.html",
			}
		},
		created() {

			let token = getToken();
			this.url = this.url + "?token=" + token;
			console.log(this.url);
			this.isBind = true;
			//this.Test();
		},
		methods: {
			Test() {
				let iframe=document.getElementById('iframeMapViewComponent').getElementById("nowConfirm");
				console.log(iframe);
				setTimeout(this.Test,5000);
			},
		},
	}
</script>
